package org.feng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.feng.entity.pojo.Menu;
import org.feng.entity.pojo.User;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> treeList(User user);

    /**
     * 获取用户拥有按钮权限
     *
     * @param roleId
     * @return
     */
    List<Menu> getAuthButtons(Long roleId);

}
